package com.fastloan.mgt.application.base.dao;

import com.fastloan.mgt.application.base.model.ApplicationIPC;
import com.fastloan.mgt.application.base.model.ApplicationValue;
import com.kawins.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApplicationValueMapper extends BaseMapper<ApplicationValue> {

    /**
     * 批量插入
     *
     * @param list 列表
     * @return 条数
     */
    Integer insertList(List<ApplicationValue> list);

    /**
     * 查询产品对应ipc
     *
     * @param productId 产品id
     * @return ipc
     */
    List<ApplicationIPC> selectProductIPC(@Param("productId") String productId);

    /**
     * 查询进件IPC
     *
     * @param applicationId 进件id
     * @return ipc
     */
    List<ApplicationIPC> selectApplicationIPC(@Param("applicationId") String applicationId);
}